package com.fxp.project.jiuselu.web.models.order.service;

import com.fxp.project.jiuselu.web.business.v1.request.cart.ReqCartAdd;
import com.fxp.project.jiuselu.web.models.order.entity.JslCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.models.order.vo.JslCartVo;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-11
 */
public interface IJslCartService extends IService<JslCart> {

    /**
     * selectJslCartVoByUserId: <br/>
     *
     * @param userId
     * @return
     * @author Kai.Wang
     * @date 2021/11/11 13:38
     */
    List<JslCartVo> selectJslCartVoByUserId(Long userId);

    /**
     * saveJslCartByUserId: 保存商品到购物车中<br/>
     * @author Kai.Wang
     * @date 2021/11/23 15:51
     * @param reqCartAdd
     * @param userId
     * @return
     */
    int saveJslCartByUserId(ReqCartAdd reqCartAdd, Long userId);
}
